<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>新增商家</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
  <script src="${pageContext.request.contextPath}/bootstrap/js/jquery-2.1.0.min.js"></script>
  <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>

  <style>
    body {
      background-color: #f5f5f5;
      font-family: "Microsoft YaHei", sans-serif;
    }
    .main-container {
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      padding: 25px;
      margin-top: 30px;
      max-width: 600px;
    }
    .form-header {
      border-bottom: 1px solid #eee;
      padding-bottom: 15px;
      margin-bottom: 20px;
    }
    .form-group label {
      font-weight: 500;
    }
    .btn-submit {
      min-width: 100px;
      padding: 8px 20px;
    }
    .btn-cancel {
      min-width: 100px;
      padding: 8px 20px;
      margin-left: 15px;
    }
    .required-field::after {
      content: "*";
      color: red;
      margin-left: 4px;
    }
  </style>
</head>
<body>
<div class="container py-4">
  <div class="main-container mx-auto">
    <div class="form-header">
      <h4><i class="glyphicon glyphicon-plus"></i> 新增商家</h4>
    </div>

    <form action="${pageContext.request.contextPath}/shangjia/xiugai" method="post">
      <input type="hidden" name="id" value="${shang.sid}">
      <div class="form-group">
        <label for="sname" class="required-field">商家名称</label>
        <input type="text" class="form-control" id="sname" name="sname"
               placeholder="请输入商家名称" value="${shang.sname}" required>
      </div>

      <div class="form-group">
        <label for="slianxi" class="required-field">联系电话</label>
        <input type="text" class="form-control" id="slianxi" name="slianxi"
               placeholder="请输入联系电话" value="${shang.slianxi}" required>
      </div>
      <div class="form-group text-right mt-4">
        <button type="submit" class="btn btn-primary btn-submit">保存</button>
      </div>
    </form>
  </div>
</div>
</body>
</html>